<template>
	<view class="nodata">
		<image class="no-record-img" src="../../static/device/no_track_record.png">

		</image>
		<view class="no-record-text">
			<slot name="custom">
				
			</slot>
		</view>
		
		<!-- <navigator url="/pages/add_device/register_device" hover-class="none" v-if="isAdd"> -->
			<view class="addDevice">
				{{$t('nodata.addDevice')}}
			</view>
		<!-- </navigator> -->
	</view>
</template>

<script setup>
	defineProps({
		isAdd:{
			type:Boolean,
		},
	})

</script>

<style lang="scss" scoped>
	.nodata {
		background-color: #fff;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		height: 100%;
		width: 100%;

		.no-record-img {
			width: 100rpx;
			height: 100rpx;
		}

		.no-record-text {
			margin-top: 20rpx;
			font-size: 30rpx;
			color: #666;
		}
		.addDevice{
			margin-top: 100rpx;
			// width: 200rpx;
			// height: 80rpx;
			color: #fff;
			
			@include flex-box-set(center);
			// background-color:  #53786C ;
			border-radius: 40rpx;
		}


	}
</style>